package com.gabry.goodkill.actor

import akka.actor.{Actor, ActorLogging, Props}
import com.gabry.goodkill.protocol.{ACTIVITY_ID_TYPE, GOOD_KILL_ID_TYPE}

/**
  * Created by gabry on 2018/9/20 18:11
  */
class GoodActors(activityId:ACTIVITY_ID_TYPE,numberOfGoods:GOOD_KILL_ID_TYPE) extends Actor with ActorLogging{
  override def preStart(): Unit = {
    0 until numberOfGoods foreach { idx =>
      context.actorOf(Props(new GoodActor(idx,activityId)),s"$activityId-good-$idx")
    }
  }
  override def receive: Receive = {
    case any =>
  }
}
